package cn.bugstack.domain.award.service.distribute.impl;

import cn.bugstack.domain.award.model.entity.DistributeAwardEntity;
import cn.bugstack.domain.award.service.distribute.IDistributeAward;
import cn.bugstack.types.enums.ResponseCode;
import cn.bugstack.types.exception.AppException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @description OpenAI 模型奖品分发服务
 */
@Slf4j
@Component("openai_model")
public class OpenAIModelDistributeAward implements IDistributeAward {

    @Override
    public void giveOutPrizes(DistributeAwardEntity distributeAwardEntity) {

        // 1. 解析奖品配置
        String awardConfig = distributeAwardEntity.getAwardConfig();
        // 2. 记录发放结果
        log.info("OpenAI 模型奖品发放成功 userId: {} awardConfig: {}",
                distributeAwardEntity.getUserId(), awardConfig);
    }
}